# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#   
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Major.create(:name => 'Daley', :city => cities.first)
#

#   http://es.fifa.com/worldcup/matches/index.html

u = Team.create({ :name => "Uruguay", :abreviation => "uru", :serie => 'A' })
f = Team.create({ :name => "Francia", :abreviation => "fra", :serie => 'A' })
s = Team.create({ :name => "Sudafrica", :abreviation => "rsa", :serie => 'A' })
m = Team.create({ :name => "Mexico", :abreviation => "mex", :serie => 'A' })

Match.create({:team_local => s, :team_visitor => m, :start => '6/11/2010 16:00', :serie => 'A'})
Match.create({:team_local => u, :team_visitor => f, :start => '6/11/2010 20:30', :serie => 'A'})
                                                                    
Match.create({:team_local => s, :team_visitor => u, :start => '6/16/2010 20:30', :serie => 'A'})
Match.create({:team_local => f, :team_visitor => m, :start => '6/17/2010 20:30', :serie => 'A'})
                                                                    
Match.create({:team_local => m, :team_visitor => u, :start => '6/22/2010 16:00', :serie => 'A'})
Match.create({:team_local => f, :team_visitor => s, :start => '6/22/2010 16:00', :serie => 'A'})

a = Team.create({ :name => "Argentina", :abreviation => "arg", :serie => 'B' })
n = Team.create({ :name => "Nigeria", :abreviation => "nga", :serie => 'B' })
k = Team.create({ :name => "Korea", :abreviation => "kor", :serie => 'B' })
g = Team.create({ :name => "Grecia", :abreviation => "gre", :serie => 'B' })
                                                                    
Match.create({:team_local => a, :team_visitor => n, :start => '6/12/2010 16:00', :serie => 'B'})
Match.create({:team_local => k, :team_visitor => g, :start => '6/12/2010 13:30', :serie => 'B'})
                                                                    
Match.create({:team_local => g, :team_visitor => n, :start => '6/17/2010 16:00', :serie => 'B'})
Match.create({:team_local => a, :team_visitor => k, :start => '6/17/2010 13:30', :serie => 'B'})
                                                                    
Match.create({:team_local => n, :team_visitor => k, :start => '6/22/2010 20:30', :serie => 'B'})
Match.create({:team_local => g, :team_visitor => a, :start => '6/22/2010 20:30', :serie => 'B'})

i = Team.create({ :name => "Inglaterra", :abreviation => "eng", :serie => 'C' })
e = Team.create({ :name => "Estados Unidos", :abreviation => "usa", :serie => 'C' })
a = Team.create({ :name => "Argelia", :abreviation => "alg", :serie => 'C' })
esl = Team.create({ :name => "Eslovenia", :abreviation => "svn", :serie => 'C' })

Match.create({:team_local => i, :team_visitor => e, :start => '6/12/2010 20:30', :serie => 'C'})
Match.create({:team_local => a, :team_visitor => esl, :start => '6/13/2010 13:30', :serie => 'C'})

Match.create({:team_local => esl, :team_visitor => e, :start => '6/18/2010 16:00', :serie => 'C'})
Match.create({:team_local => i, :team_visitor => a, :start => '6/18/2010 20:30', :serie => 'C'})

Match.create({:team_local => esl, :team_visitor => i, :start => '6/23/2010 16:00', :serie => 'C'})
Match.create({:team_local => e, :team_visitor => a, :start => '6/23/2010 16:00', :serie => 'C'})
